<?php

use yii\widgets\LinkPager;
use yii\helpers\Html;
use yii\helpers\Url;

?>
<div style="height:5px"></div>

    <table id="dnd-example" cellspacing="0" class="table table-striped table-hover">
        <thead>
            <tr>
                <th style="width:80px;">ID</th>
                <th>举报人</th>
                <th>举报照片</th>
                <th>举报原因</th>
                <th>举报时间</th>
            </tr>
        </thead>

        <tbody>

            <?php
            $users=$dataProvider->getModels();  

            foreach($users as $user)
            {
            ?>
            <tr id="user_<?=$user->id;?>">
                <td><?= $user->id;?></td>
                <td><?= $user->userid;?></td>
                <td><?= $user->pic_id;?></td>
                <td><?=$user->reson?></td>
                <td><?=date('Y-m-d H:i:s',$user->inputtime);?></td>
            </tr>
                    
            <?php }?>
        </tbody>
        </table> 

<?php 
$pages=$dataProvider->getPagination();
echo LinkPager::widget([
    'pagination' => $pages,
    ]);

?>